import type { RouteRecordRaw } from 'vue-router';

export const staticRoutes: Array<RouteRecordRaw> = [
  {
    path: '/Home',
    name: 'Home',
    component: () => import('../pages/home/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/Classify',
    name: 'Classify',
    component: () => import('../pages/classify/index.vue'),
    meta: {
      hidden: true
    },
  },
  //superCategoryId,id,showIndex
  {
    path:`/Classify/details/:superCategoryId/:id/:showIndex`,
    name:"ClassifyDetail",
    component:()=>import('../pages/classify/classifyDetail/index.vue'),
    meta: {
      hidden: true
    },
  },
  {
    path: '/Buying',
    name: 'Buying',
    component: () => import('../pages/buying/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/Cart',
    name: 'Cart',
    component: () => import('../pages/cart/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/Record',
    name: 'Record',
    component: () => import('../pages/record/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/Person',
    name: 'Person',
    component: () => import('../pages/person/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/Detail',
    name: 'Detail',
    component: () => import('../pages/detail/index.vue'),
    meta: {
      hidden: true
    },
    },
 
  // 支付页面
  {
    path:'/PayOrder',
    name:'PayOrder',
    component:()=>import('../pages/payOrder/index.vue'),
  },
  // 地址列表
  {
    path:'/AddressList',
    name:'AddressList',
    component:()=>import('../pages/address/addressList/index.vue'),
  },
  //编辑或新增地址
  {
    path:'/AddOrEditAddress',
    name:'AddOrEditAddress',
    component:()=>import('@/pages/address/addOrEditAddress/index.vue')
  },
  {
    path: '/Search',
    name: 'Search',
    component: () => import('../pages/search/index.vue'),
  },

  {
    path: '/login',
    name: 'Login',
    component: () => import('../pages/Login/index.vue'),
    meta: {
      hidden: true
    },

  },
  {
    path: '/user',
    name: 'User',
    component: () => import('../pages/Login/user/index.vue'),
    meta: {
      hidden: true
    },

  },
  {
    path: '/Logon',
    name: 'Logon',
    component: () => import('../pages/Login/Logon/index.vue'),
    meta: {
      hidden: true
    },

  },
  {
    path: '/',
    redirect: '/Home'
  }
];
